package Test1;

import JavaCore.MyMathInterface;

public class Mymath implements MyMathInterface {

	

	@Override
	public int max(int a, int b) {
		int n =(a>b)?a:b;
		return n;
	}

	@Override
	public int min(int a, int b) {
		int n=(a<b)?a:b;
		return n;
	}

	@Override
	public int hap(int[] a) {
		int s= 0;
		for(int i=0;i<=a.length;i++){
			s+=a[i];
		}
		return s;
	}

}
